package com.yyx.server.pojo;

import cn.afterturn.easypoi.excel.annotation.Excel;
import cn.afterturn.easypoi.excel.annotation.ExcelEntity;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 
 * </p>
 *
 * @author YongXin
 * @since 2021-07-24
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("t_employee")
public class Employee implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * id
     */
      @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 姓名
     */
    @Excel(name = "员工姓名")
    private String name;

    /**
     * 性别
     */
    @Excel(name = "性别")
    private String gender;

    /**
     * 生日
     */
    @JsonFormat(shape = JsonFormat.Shape.STRING,pattern = "yyyy-MM-dd HH:mm:ss", timezone = "Asia/Guangzhou")
    @Excel(name = "出生日期",width = 25,format = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime birthday;

    /**
     * 身份证号
     */
    @Excel(name = "身份证号",width = 30)
    private String idCard;

    /**
     * 婚姻状况
     */
    @Excel(name = "婚姻状况")
    private String wedlock;

    /**
     * 民族
     */

    private Integer nationId;

    /**
     * 籍贯
     */
    @Excel(name = "籍贯")
    private String nationPlace;

    /**
     * 政治面貌
     */
    private Integer politicId;

    /**
     * 邮箱
     */
    @Excel(name = "邮箱",width = 30)
    private String email;

    /**
     * 手机
     */
    @Excel(name = "手机号",width = 15)
    private String phone;

    /**
     * 地址
     */
    @Excel(name = "地址",width = 40)
    private String address;

    /**
     * 部门编号
     */
    private Integer departmentId;

    /**
     * 职称id
     */
    private Integer jobLevelId;

    /**
     * 职位id
     */
    private Integer posId;

    /**
     * 聘用形式
     */
    private String engageForm;

    /**
     * 最高学历
     */
    @Excel(name = "最高学历")
    private String tiptopDegree;

    /**
     * 所属专业
     */
    @Excel(name = "所属专业")
    private String specialty;

    /**
     * 毕业院校
     */
    @Excel(name = "毕业院校")
    private String school;

    /**
     * 入职日期
     */
    @JsonFormat(shape = JsonFormat.Shape.STRING,pattern = "yyyy-MM-dd HH:mm:ss", timezone = "Asia/Guangzhou")
    private LocalDateTime beginDate;

    /**
     * 在职状态
     */
    @Excel(name = "在职状态")
    private String workState;

    /**
     * 工号
     */
    @Excel(name = "工号")
    private String workId;

    /**
     * 合同期限
     */
    @Excel(name = "合同期限",suffix = "年")
    private Double contractTerm;

    /**
     * 转正日期
     */
    @JsonFormat(shape = JsonFormat.Shape.STRING,pattern = "yyyy-MM-dd HH:mm:ss", timezone = "Asia/Guangzhou")
    @Excel(name = "转正日期",width = 25,format ="yyyy-MM-dd HH:mm:ss" )
    private LocalDateTime conversionTime;

    /**
     * 离职日期
     */
    @JsonFormat(shape = JsonFormat.Shape.STRING,pattern = "yyyy-MM-dd HH:mm:ss", timezone = "Asia/Guangzhou")
    @Excel(name = "离职日期",width = 25,format ="yyyy-MM-dd HH:mm:ss" )
    private LocalDateTime notWorkTract;

    /**
     * 合同起始日期
     */
    @JsonFormat(shape = JsonFormat.Shape.STRING,pattern = "yyyy-MM-dd HH:mm:ss", timezone = "Asia/Guangzhou")
    @Excel(name = "合同起始日期",width = 25,format ="yyyy-MM-dd HH:mm:ss" )
    private LocalDateTime beginContract;

    /**
     * 合同终止日期
     */
    @JsonFormat(shape = JsonFormat.Shape.STRING,pattern = "yyyy-MM-dd HH:mm:ss", timezone = "Asia/Guangzhou")
    @Excel(name = "合同终止日期",width = 25,format ="yyyy-MM-dd HH:mm:ss" )
    private LocalDateTime endContract;

    /**
     * 工龄
     */
    @Excel(name = "工龄")
    private Integer workAge;

    /**
     * 工资账套id
     */
    private Integer salaryId;

    @ApiModelProperty("民族")
    @TableField(exist = false)
    @ExcelEntity(name = "民族")
    private Nation nation;

    @ApiModelProperty("政治面貌")
    @TableField(exist = false)
    @ExcelEntity(name = "政治面貌")
    private PoliticsStatus politicsStatus;

    @ApiModelProperty("部门")
    @TableField(exist = false)
    @ExcelEntity(name = "部门")
    private Department department;

    @ApiModelProperty("职称")
    @TableField(exist = false)
    @ExcelEntity(name = "职称")
    private Joblevel joblevel;

    @ApiModelProperty("职位")
    @TableField(exist = false)
    @ExcelEntity(name = "职位")
    private Position position;

    @ApiModelProperty("工资账套")
    @TableField(exist = false)
    private Salary salary;

}
